package com.szholly.pro.watergas_server.ps.controller;


import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.szholly.pro.watergas_server.common.data.DataUtil;
import com.szholly.pro.watergas_server.common.util.JsonUtil;
import com.szholly.pro.watergas_server.common.web.BaseController;
import com.szholly.pro.watergas_server.common.web.RequestUnit;
import com.szholly.pro.watergas_server.ps.service.QCBaseInfoManagementService;
import com.szholly.data.general.RowBase;

import net.sf.json.JSONObject;


@Controller   //质控基本信息管理
@RequestMapping("/QCBaseInfoManagement/*")
public class QCBaseInfoManagementController extends BaseController {
	
	@Autowired
	QCBaseInfoManagementService qcBaseInfoManagerService;

	
	
	/**
	 * 获取监测手段列表数据
	 * @param resq
	 * @param res
	 * @throws Exception
	 */	
	@RequestMapping(value="/getMonitorMethodList")
	public void getMonitorMethodList(HttpServletRequest resq, HttpServletResponse res) throws Exception{
		String result = qcBaseInfoManagerService.getMonitorMethodList();
		outString(result);
	}
	/**
	 * 获取质控类型列表数据
	 * @param resq
	 * @param res
	 * @throws Exception
	 */	
	@RequestMapping(value="/getQualityControlTypeList")
	public void getQualityControlTypeList(HttpServletRequest resq, HttpServletResponse res) throws Exception{	  
		String result = qcBaseInfoManagerService.getQualityControlTypeList();
		outString(result);
	}
	/**
	 * 获取质控类型列表数据(无普通样,用于汇总评价)
	 * @param resq
	 * @param res
	 * @throws Exception
	 */	
	@RequestMapping(value="/getSumEvaQualityControlTypeList")
	public void getSumEvaQualityControlTypeList(HttpServletRequest resq, HttpServletResponse res) throws Exception{	  
		Map<String,String> params = new HashMap<>();
		List<RowBase> SampleList = qcBaseInfoManagerService.getSumEvaQualityControlTypeList(params);
		JSONObject json=DataUtil.listToJSONObject(SampleList);
		outString(json.toString());
	}
	/**
	 * 获取监测类型列表数据
	 * @param resq
	 * @param res
	 * @throws Exception
	 */	
	@RequestMapping(value="/getMonitorTypeList")
	public void getMonitorTypeList(HttpServletRequest resq, HttpServletResponse res) throws Exception{
		Map<String,String> params = new HashMap<>();
		List<RowBase> SampleList = qcBaseInfoManagerService.getMonitorTypeList(params);
		JSONObject json=DataUtil.listToJSONObject(SampleList);
		outString(json.toString());
	}
	
	/**
	 * 获取质控人员身份类型列表数据
	 * @param resq
	 * @param res
	 * @throws Exception
	 */	
	@RequestMapping(value="/getQCPersonTypeList")
	public void getQCPersonTypeList(HttpServletRequest resq, HttpServletResponse res) throws Exception{
		String result = qcBaseInfoManagerService.getQCPersonTypeList();
		outString(result);
	}

	

	
	/**
	 * 获取去重后的公司信息(去重后的结果)
	 * 张文成
	 * 2016年12月16日
	 * @param res
	 */
	@RequestMapping (value = "/getDistinctCompanyData")
	public void getDistinctCompanyData(HttpServletResponse res){
		try {	
			Map<String, String> parm=queryStationQueryParams();
			String result =qcBaseInfoManagerService.getDistinctCompanyData(parm);
			outString(result);
		}catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	/**
	 * 获取所有公司信息 
	 * 张文成
	 * 2016年11月28日
	 * @param res
	 */
	@RequestMapping (value = "/getCompanyData")
	public void getCompanyData(HttpServletResponse res){
		try {	
			Map<String, String> parm=queryStationQueryParams();
			String result =qcBaseInfoManagerService.getCompanyData(parm);
			outString(result);
		}catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	
	
	/**
	 * 新增公司信息 
	 * 张文成
	 * 2016年11月28日
	 * @param res
	 */
	@RequestMapping (value = "/createCompany")
	public void createCompany(HttpServletResponse res){
		try {
			Map<String, String> parm=queryStationQueryParams();
			String[] arrMonitorTypeId = RequestUnit.getStringArray("ARRMONITORTYPEID");
			String[] arrParamGUId = RequestUnit.getStringArray("ARRPARAMSGUID");
			String jsonStr;
			if(qcBaseInfoManagerService.createCompany(parm,arrMonitorTypeId,arrParamGUId))
			{
				jsonStr = "{\"data\":\"success\"}";
			}else{
				jsonStr = "{\"data\":\"error\",\"msg\":\"保存失败\"}";
			}
			outString(jsonStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	/**
	 * 编辑公司信息 
	 * 张文成
	 * 2016年11月28日
	 * @param res
	 */
	@RequestMapping (value = "/editCompany")
	public void editCompany(HttpServletResponse res){
		try {
				Map<String, String> parm=queryStationQueryParams();
				String[] arrMonitorTypeId = RequestUnit.getStringArray("ARRMONITORTYPEID");
				String[] arrParamGUId = RequestUnit.getStringArray("ARRPARAMSGUID");
				String jsonStr;
				if(qcBaseInfoManagerService.editCompany(parm,arrMonitorTypeId,arrParamGUId))
				{
				    jsonStr = "{\"data\":\"success\"}";
					
				}else{
					jsonStr = "{\"data\":\"error\",\"msg\":\"保存失败\"}";
				}
				outString(jsonStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	
	/**
	 * 删除公司信息 
	 * 张文成
	 * 2016年11月28日
	 * @param res
	 */
	@RequestMapping (value = "/deleteCompany")
	public void deleteCompany(HttpServletResponse res){
		try {
				Map<String, String> parm=queryStationQueryParams();
				String jsonStr;
				if(qcBaseInfoManagerService.deleteCompany(parm))
				{
					jsonStr = "{\"data\":\"success\"}";
				}else{
					jsonStr = "{\"data\":\"error\",\"msg\":\"删除失败\"}";
				}
				outString(jsonStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	/**
	 * 获取公司相关监测类型信息 
	 * 张文成
	 * 2017年02月14日
	 * @param res
	 */
	@RequestMapping (value = "/getCompanyMonitorTypeData")
	public void getCompanyMonitorTypeData(HttpServletResponse res){
		try {	
			String COMPANYCODE=RequestUnit.getParameter("COMPANYCODE");
			RowBase result = qcBaseInfoManagerService.getCompanyMonitorTypeData(COMPANYCODE);
			String jsonStr = JsonUtil.ConvertObjectToJson(result);
			outString(jsonStr);
		}catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	/**
	 * 获取公司相关监测参数信息 
	 * 张文成
	 * 2017年02月14日
	 * @param res
	 */
	@RequestMapping (value = "/getCompanyMonitorParamsData")
	public void getCompanyMonitorParamsData(HttpServletResponse res){
		try {	
			String COMPANYCODE=RequestUnit.getParameter("COMPANYCODE");
			RowBase result = qcBaseInfoManagerService.getCompanyMonitorParamsData(COMPANYCODE);
			String jsonStr = JsonUtil.ConvertObjectToJson(result);
			outString(jsonStr);
		}catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	/**
	 * 新增点位信息 
	 * 张文成
	 * 2016年12月09日
	 * @param res
	 */
	@RequestMapping (value = "/createPoint")
	public void createPoint(HttpServletResponse res){
		try {
			Map<String, String> parm=queryStationQueryParams();
			String jsonStr;
			if(qcBaseInfoManagerService.createPoint(parm))
			{
				jsonStr = "{\"data\":\"success\"}";
			}else{
				jsonStr = "{\"data\":\"error\",\"msg\":\"保存失败\"}";
			}
			outString(jsonStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	/**
	 * 编辑点位信息 
	 * 张文成
	 * 2016年12月09日
	 * @param res
	 */
	@RequestMapping (value = "/editPoint")
	public void editPoint(HttpServletResponse res){
		try {
			Map<String, String> parm=queryStationQueryParams();
			String jsonStr;
			if(qcBaseInfoManagerService.editPoint(parm))
			{
				jsonStr = "{\"data\":\"success\"}";
			}else{
				jsonStr = "{\"data\":\"error\",\"msg\":\"保存失败\"}";
			}
			outString(jsonStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	/**
	 * 删除点位信息 
	 * 张文成
	 * 2016年12月09日
	 * @param res
	 */
	@RequestMapping (value = "/deletePoint")
	public void deletePoint(HttpServletResponse res){
		try {
				Map<String, String> parm=queryStationQueryParams();
				String jsonStr;
				if(qcBaseInfoManagerService.deletePoint(parm))
				{
					jsonStr = "{\"data\":\"success\"}";
				}else{
					jsonStr = "{\"data\":\"error\",\"msg\":\"删除失败\"}";
				}
				outString(jsonStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	/**
	 * 获取点位信息 
	 * 张文成
	 * 2016年12月09日
	 * @param res
	 */
	@RequestMapping (value = "/getPointData")
	public void getPointData(HttpServletResponse res){
		try {
				Map<String, String> parm=queryStationQueryParams();
				String result = qcBaseInfoManagerService.getPointData(parm);
				outString(result);
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	/**
	 * 新增公司人员信息 
	 * 张文成
	 * 2016年11月28日
	 * @param res
	 */
	@RequestMapping (value = "/addCompanyPerson")
	public void addCompanyPerson(HttpServletResponse res){
		try {
				Map<String, String> parm=queryStationQueryParams();
				String jsonStr;
				if(qcBaseInfoManagerService.addCompanyPerson(parm))
				{
					jsonStr = "{\"data\":\"success\"}";
				}else{
					jsonStr = "{\"data\":\"error\",\"msg\":\"保存失败\"}";
				}
				outString(jsonStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	/**
	 * 删除公司人员信息 
	 * 张文成
	 * 2016年11月28日
	 * @param res
	 */
	@RequestMapping (value = "/deleteCompanyPerson")
	public void deleteCompanyPerson(HttpServletResponse res){
		try {
				Map<String, String> parm=queryStationQueryParams();
				String jsonStr;
				if(qcBaseInfoManagerService.deleteCompanyPerson(parm))
				{
					jsonStr = "{\"data\":\"success\"}";
				}else{
					jsonStr = "{\"data\":\"error\",\"msg\":\"删除失败\"}";
				}
				outString(jsonStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	/**
	 * 编辑公司人员信息 
	 * 张文成
	 * 2016年11月28日
	 * @param res
	 */
	@RequestMapping (value = "/editCompanyPerson")
	public void editCompanyPerson(HttpServletResponse res){
		try {
			Map<String, String> parm=queryStationQueryParams();
			String jsonStr;
			if(qcBaseInfoManagerService.editCompanyPerson(parm))
			{
				jsonStr = "{\"data\":\"success\"}";
			}else{
				jsonStr = "{\"data\":\"error\",\"msg\":\"保存失败\"}";
			}
			outString(jsonStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	/**
	 * 获取所有公司人员信息 
	 * 张文成
	 * 2016年11月28日
	 * @param res
	 */
	@RequestMapping (value = "/getCompanyPersonData")
	public void getCompanyPersonData(HttpServletResponse res){
		try {	
			String result = qcBaseInfoManagerService.getCompanyPersonData();
			outString(result);
		}catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	/**
	 * 新增监测项目信息 
	 * 张文成
	 * 2016年12月10日
	 * @param res
	 */
	@RequestMapping (value = "/createMonitorParam")
	public void createMonitorParam(HttpServletResponse res){
		try {
			Map<String, String> parm=queryStationQueryParams();
			Map<String,String> oom = RequestUnit.getHashMapParmS();
			String jsonStr;
			if(qcBaseInfoManagerService.createMonitorParam(parm,oom))
			{
				jsonStr = "{\"data\":\"success\"}";
			}else{
				jsonStr = "{\"data\":\"error\",\"msg\":\"保存失败\"}";
			}
			
			outString(jsonStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	/**
	 * 编辑监测项目信息 
	 * 张文成
	 * 2016年12月10日
	 * @param res
	 */
	@RequestMapping (value = "/editMonitorParam")
	public void editMonitorParam(HttpServletResponse res){
		try {
			Map<String, String> parm=queryStationQueryParams();
			Map<String,String> oom = RequestUnit.getHashMapParmS();
			String jsonStr;
			if(qcBaseInfoManagerService.editMonitorParam(parm,oom))
			{
				jsonStr = "{\"data\":\"success\"}";
			}else{
				jsonStr = "{\"data\":\"error\",\"msg\":\"保存失败\"}";
			}
			outString(jsonStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	/**
	 * 删除监测项目信息 
	 * 张文成
	 * 2016年12月10日
	 * @param res
	 */
	@RequestMapping (value = "/deleteMonitorParam")
	public void deleteMonitorParam(HttpServletResponse res){
		try {
				Map<String, String> parm=queryStationQueryParams();
				String jsonStr;
				if(qcBaseInfoManagerService.deleteMonitorParam(parm))
				{
					jsonStr = "{\"data\":\"success\"}";
				}else{
					jsonStr = "{\"data\":\"error\",\"msg\":\"删除失败\"}";
				}
				outString(jsonStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	/**
	 * 获取监测项目信息 
	 * 张文成
	 * 2016年12月09日
	 * @param res
	 */
	@RequestMapping (value = "/getMonitorParam")
	public void getMonitorParam(HttpServletResponse res){
		try {
				Map<String, String> parm=queryStationQueryParams();
				String result = qcBaseInfoManagerService.getMonitorParam(parm);
				outString(result);
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	/**
	 * 获取监测项目信息 
	 * 张文成
	 * 2016年12月10日
	 * @param res
	 * @throws Exception 
	 */
	@RequestMapping (value = "/getMonitorParamData")
	public void getMonitorParamData(HttpServletResponse res) {
		try {           
				String[] monitorTypeCode = RequestUnit.getArray("monitorTypeCode[]");
				if(monitorTypeCode == null){
					return;
				}
				String result = qcBaseInfoManagerService.getMonitorParamData(monitorTypeCode);
				outString(result);			
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	/**
	 * 获取监测项目详情信息（数量级） 
	 * 张文成
	 * 2017年2月07日
	 * @param res
	 */
	@RequestMapping (value = "/getMonitorParamDetail")
	public void getMonitorParamDetail(HttpServletResponse res){
		try {
				Map<String, String> parm=queryStationQueryParams();
				String result = qcBaseInfoManagerService.getMonitorParamDetail(parm);
				outString(result);
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	
	/**
	 * 根据监测类型获取去重的监测项目信息 (监测类型与监测项目直接对应)
	 * 张文成
	 * 2016年12月16日
	 * @param res
	 * @throws Exception 
	 */
	@RequestMapping (value = "/getMonitorParamByMonitorType")
	public void getMonitorParamByMonitorType(HttpServletResponse res){
		try {
			Map<String, String> parm=queryStationQueryParams();
			String result = qcBaseInfoManagerService.getMonitorParamByMonitorType(parm);
			outString(result);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	
	/**
	 * 新增分析方法信息 
	 * 张文成
	 * 2016年12月15日
	 * @param res
	 */
	@RequestMapping (value = "/createExpMethod")
	public void createExpMethod(HttpServletResponse res){
		try {
				Map<String, String> parm=queryStationQueryParams();
				String jsonStr;
				if(qcBaseInfoManagerService.createExpMethod(parm))
				{
					jsonStr = "{\"data\":\"success\"}";
				}else{
					jsonStr = "{\"data\":\"error\",\"msg\":\"保存失败\"}";
				}
				outString(jsonStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	/**
	 * 编辑分析方法信息 
	 * 张文成
	 * 2016年12月15日
	 * @param res
	 */
	@RequestMapping (value = "/editExpMethod")
	public void editExpMethod(HttpServletResponse res){
		try {
				Map<String, String> parm=queryStationQueryParams();
				String jsonStr;
				if(qcBaseInfoManagerService.editExpMethod(parm))
				{
					jsonStr = "{\"data\":\"success\"}";
				}else{
					jsonStr = "{\"data\":\"error\",\"msg\":\"保存失败\"}";
				}
				outString(jsonStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	/**
	 * 删除分析方法信息 
	 * 张文成
	 * 2016年12月15日
	 * @param res
	 */
	@RequestMapping (value = "/deleteExpMethod")
	public void deleteExpMethod(HttpServletResponse res){
		try {
				Map<String, String> parm=queryStationQueryParams();
				String jsonStr;
				if(qcBaseInfoManagerService.deleteExpMethod(parm))
				{
					jsonStr = "{\"data\":\"success\"}";
				}else{
					jsonStr = "{\"data\":\"error\",\"msg\":\"删除失败\"}";
				}
				outString(jsonStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	/**
	 * 获取分析方法信息 
	 * 张文成
	 * 2016年12月15日
	 * @param res
	 */
	@RequestMapping (value = "/getExpMethod")
	public void getExpMethod(HttpServletResponse res){
		try {
				String result = qcBaseInfoManagerService.getExpMethod();
				outString(result);
			} catch (Exception e) {
				e.printStackTrace();
			}
	}
	
	
	
	
	
	/**
	 * 根据公司、监测类型获取参数
	 */
	@RequestMapping(value = "/getCompanyParam")
	public void getCompanyParam(HttpServletRequest resq, HttpServletResponse res) throws Exception {
		Map<String,String> params = queryStationQueryParams();
		List<RowBase> list  = qcBaseInfoManagerService.getCompanyParam(params);		
		JSONObject json = DataUtil.listToJSONObject(list, null, null);
		outString(json.toString());
	}
	/**
	 * 获取站点参数
	 */
	@RequestMapping(value = "/getStationParam")
	public void getStationParam(HttpServletRequest resq, HttpServletResponse res) throws Exception {
		Map<String,String> params = queryStationQueryParams();
		List<RowBase> list  = qcBaseInfoManagerService.getStationParam(params);		
		JSONObject json = DataUtil.listToJSONObject(list, null, null);
		outString(json.toString());
	}
	/**
	 * 获取站点参数
	 */
	@RequestMapping(value = "/delStationParam")
	public void delStationParam(HttpServletRequest resq, HttpServletResponse res) throws Exception {
		Map<String,String> params = queryStationQueryParams();
		qcBaseInfoManagerService.delStationParam(params);		
	}
	/**
	 * 查询带坐标数据的质控站点信息
	 */
	@RequestMapping(value = "/getQCStationListWithSpatial")
	public void getQCStationWithSpatial(HttpServletRequest resq, HttpServletResponse res) throws Exception {
		Map<String,String> params = queryStationQueryParams();
		List<RowBase> list  = qcBaseInfoManagerService.queryQCStationWithSpatial(params);		
		JSONObject json = DataUtil.listToJSONObject(list, null, null);
		outString(json.toString());
	}
	/**
	 * 根据用户角色获取公司信息
	 */
	@RequestMapping(value = "/getRoleCompany")
	public void getRoleCompany(HttpServletRequest resq, HttpServletResponse res) throws Exception {
		Map<String,String> params = queryStationQueryParams();
		List<RowBase> list  = qcBaseInfoManagerService.getRoleCompany(params);		
		JSONObject json = DataUtil.listToJSONObject(list, null, null);
		outString(json.toString());
	}
	/**
	 * 获取参数方法
	 * @return
	 */
	private Map<String,String> queryStationQueryParams() {
		Map<String,String> params = new HashMap<>();
		String MONITORINGTYPE=RequestUnit.getString("MONITORINGTYPE");
		String MonitorMethod=RequestUnit.getString("MonitorMethod");
		String CompanyCode=RequestUnit.getString("CompanyCode");
		String QCType=RequestUnit.getString("QCType");
		String SAMPLENUMBER=RequestUnit.getString("SAMPLENUMBER");
		String endDate=RequestUnit.getString("endDate");
		String startDate=RequestUnit.getString("startDate");
		String GUID=RequestUnit.getParameter("GUID");
		String COMPANYNAME=RequestUnit.getParameter("COMPANYNAME");
		String COMPANYTYPECODE=RequestUnit.getParameter("COMPANYTYPECODE");
		String COMPANYCODE=RequestUnit.getParameter("COMPANYCODE");
		String SAMPLENUMBERRULE=RequestUnit.getParameter("SAMPLENUMBERRULE");
		String PERSONNAME=RequestUnit.getParameter("PERSONNAME");
		String PERSONCODE=RequestUnit.getParameter("PERSONCODE");
		String PERSONTYPE=RequestUnit.getParameter("PERSONTYPE");
		String POINTNAME=RequestUnit.getParameter("POINTNAME");
		String SAMPLEPOSITION=RequestUnit.getParameter("SAMPLEPOSITION");
		String POINTCODE=RequestUnit.getParameter("POINTCODE");
		String POINTTYPECODE=RequestUnit.getParameter("POINTTYPECODE");
		String LONGITUDE=RequestUnit.getParameter("LONGITUDE");
		String LATITUDE=RequestUnit.getParameter("LATITUDE");
		String MONITORTYPECODE=RequestUnit.getParameter("MONITORTYPECODE");
		String MONITORPARAMNAME=RequestUnit.getParameter("MONITORPARAMNAME");
		String MONITORPARAMCODE=RequestUnit.getParameter("MONITORPARAMCODE");
		String MONITORPARAMUNIT=RequestUnit.getParameter("MONITORPARAMUNIT");
		String ISFIELDPARAM=RequestUnit.getParameter("ISFIELDPARAM");
		String METHODCODE=RequestUnit.getParameter("METHODCODE");
		String SMAN=RequestUnit.getParameter("SMAN");
		String METHODNAME=RequestUnit.getParameter("METHODNAME");
		String MINDETECTIONLIMIT=RequestUnit.getParameter("MINDETECTIONLIMIT");
		String MINDETECTIONLIMITUNIT=RequestUnit.getParameter("MINDETECTIONLIMITUNIT");
		String MCUPLIMIT=RequestUnit.getParameter("MCUPLIMIT");
		String MCDOWNLIMIT=RequestUnit.getParameter("MCDOWNLIMIT");
		String PMAD=RequestUnit.getParameter("PMAD");
		String SRRUPLIMIT=RequestUnit.getParameter("SRRUPLIMIT");
		String SRRDOWNLIMIT=RequestUnit.getParameter("SRRDOWNLIMIT");
		String REOSS=RequestUnit.getParameter("REOSS");
		String RDCM=RequestUnit.getParameter("RDCM");
		String COMPAYDETECTION=RequestUnit.getParameter("COMPAYDETECTION");
		String PHOTO=RequestUnit.getParameter("PHOTO");
		String USERID=RequestUnit.getParameter("USERID");
		params.put("USERID", USERID);
		params.put("PHOTO", PHOTO);
		params.put("COMPAYDETECTION", COMPAYDETECTION);
		params.put("MONITORINGTYPE", MONITORINGTYPE);
		params.put("MonitorMethod", MonitorMethod);
		params.put("CompanyCode", CompanyCode);
		params.put("QCType", QCType);
		params.put("SAMPLENUMBER", SAMPLENUMBER);
		params.put("endDate", endDate);
		params.put("startDate", startDate);
		params.put("GUID",GUID);
		params.put("COMPANYNAME",COMPANYNAME);
		params.put("COMPANYTYPECODE",COMPANYTYPECODE);
		params.put("COMPANYCODE",COMPANYCODE);
		params.put("SAMPLENUMBERRULE",SAMPLENUMBERRULE);
		params.put("PERSONNAME",PERSONNAME);
		params.put("PERSONCODE",PERSONCODE);
		params.put("PERSONTYPE",PERSONTYPE);
		params.put("POINTNAME",POINTNAME);
		params.put("SAMPLEPOSITION",SAMPLEPOSITION);
		params.put("POINTCODE",POINTCODE);
		params.put("POINTTYPECODE",POINTTYPECODE);
		params.put("LONGITUDE",LONGITUDE);
		params.put("LATITUDE",LATITUDE);
		params.put("MONITORTYPECODE",MONITORTYPECODE);
		params.put("MONITORPARAMNAME",MONITORPARAMNAME);
		params.put("MONITORPARAMCODE",MONITORPARAMCODE);
		params.put("MONITORPARAMUNIT",MONITORPARAMUNIT);
		params.put("ISFIELDPARAM",ISFIELDPARAM);
		params.put("METHODCODE",METHODCODE);
		params.put("SMAN",SMAN);
		params.put("METHODNAME",METHODNAME);
		params.put("MINDETECTIONLIMIT",MINDETECTIONLIMIT);
		params.put("MINDETECTIONLIMITUNIT",MINDETECTIONLIMITUNIT);
		params.put("MCUPLIMIT",MCUPLIMIT);
		params.put("MCDOWNLIMIT",MCDOWNLIMIT);
		params.put("PMAD",PMAD);
		params.put("SRRUPLIMIT",SRRUPLIMIT);
		params.put("SRRDOWNLIMIT",SRRDOWNLIMIT);
		params.put("REOSS",REOSS);
		params.put("RDCM",RDCM);
		return params;		
	}
	
	
}
